package com.xlh.param.course;

import cn.hutool.core.util.StrUtil;
import com.xlh.util.InputValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 班级课程参数
 * <p>
 * Created by lx on 2019/5/6.
 */
@Data
public class ClassCourseParam {

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "班级名称")
    private String name;

    @ApiModelProperty(value = "班级状态")
    private String status;

    @ApiModelProperty(value = "标识")
    private Boolean falg;

    @ApiModelProperty(value = "类型")
    private Integer type;

    // 去空格处理
    public String getName() {
        if(StrUtil.isNotBlank(name)){
            name = InputValidator.regSpecialChar(name);
        }
        return name;
    }
}
